package net.zjitc.bookshop15.service.impl;

import net.zjitc.bookshop15.mapper.bookMapper;
import net.zjitc.bookshop15.pojo.book;
import net.zjitc.bookshop15.service.bookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 董熠涛
 * @date 2025/4/28 13:26
 */
@Service
public class bookServiceImpl implements bookService {

    @Autowired
    private bookMapper bookmapper;

    @Override
    public List<book> selectAllBooks() {
        List<book> books = bookmapper.selectAllBooks();
        return books;
    }

    @Override
    public book selectBookOne(Integer id) {
        return bookmapper.selectBookOne(id);
    }
}
